package com.shaoyu.tools.event;

import com.shaoyu.tools.event.config.EventBusConfig;
import com.shaoyu.tools.event.config.EventBusImportSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author shaoyu
 * @date 2022/11/21 17:41
 */

@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE})
@Import({EventBusConfig.class, EventBusImportSelector.class})
public @interface EnableEventBus {
    boolean async() default true;
}
